import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { RegisterBodyComponent } from './register-body/register-body.component';
import { RegisterSuccessComponent } from './register-success/register-success.component';
import { RegisterBodyAccountComponent } from './register-body/register-body-account/register-body-account.component';
import { RegisterBodyPasswordComponent } from './register-body/register-body-password/register-body-password.component';

const routes: Routes = [
  {
    path: '',
    redirectTo: 'home'
  },
  {
    path: 'home',
    component: RegisterBodyComponent,
  },
  {
    path: 'success',
    component: RegisterSuccessComponent,
  },
  {
    path: '**',
    redirectTo: ''
  },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class RegisterRoutingModule { }
